<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Canvas</title>
</head>
<style>
html,body{
    margin: 0;
    padding: 0;
}
.edit{
    width: 200px;
    height: 200px;
    position: relative;
    margin:auto;
    line-height: 200px;
}
.edit .name{
    width: 100px;
}
#canvas{
    position: absolute;
    left: 50%;
    margin-left: -375px;
}
</style>
<body>
    <div class="edit">
        <input type="text" name="name" value="姓名" class="name">
        <button type="button" class="save">保存</button>
        <button type="button" class="download">下载</button>
    </div>
    <canvas id="canvas" width="750" height="1334"></canvas>
</body>
<script src="index.js"></script>
</html>